<?php
namespace app\api\controller;

class History extends BaseUser
{
	public function index()
	{
		$page = request_input('page',1);
		$data = $this->user->historys()->order('id desc')->paginate(10);
		return cdm(200, $data, '');
	}

	public function create()
	{
		
	}

	public function save()
	{

	}

	public function read($id)
	{
		
	}

	public function edit($id)
	{
		
	}

	public function update($id)
	{

	}

	public function delete($id)
	{

	}
}